import React from 'react';
import {BrowserRouter as Router, Route, Switch} from 'react-router-dom';
import Demo from '../movie/movieList';
import Shuffling from '../movie/movieCarousel';
import MovieDetail from '../movie/movieDetail';

const BasicRoute = () => (
    <Router>
        <div style={{height:'100%'}}>
            <Switch>
                <Route exact path="/" component={Demo}/>
                <Route exact path="/movieCarousel" component={Shuffling}/>
                <Route exact path="/movieDetail" component={MovieDetail}/>
            </Switch>
        </div>
    </Router>
);


export default BasicRoute;
